//
//  main.m
//  P103
//
//  Created by 闫潇 on 14-10-13.
//  Copyright (c) 2014年 yan. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Dog.h"
int main(int argc, const char * argv[])
{

    Dog * dog = [Dog new];
    
    
    int ID = [dog getID];
    int age = [dog getAge];
    float price = [dog getPrice];
    NSLog(@"dog id is %d age is %d price is %f",ID,age,price);
    
    Dog * dog1 = [Dog new];
    [dog1 initWithID:100 andAge:26 andPrice:68.88];
    ID = [dog1 getID];
    age = [dog1 getAge];
    price = [dog1 getPrice];
    NSLog(@"dog1 id is %d age is %d price is %f",ID,age,price);
    return 0;
}

